import { createId } from "../../utils";
export default defineEventHandler((event) => {
  let list = [
    {
      name: "首页",
      url: "/blog/home",
    },
    {
      name: "免费看课",
      url: "/blog/page",
      icon: "new",
      children: [
        {
          name: "初级会计",
          url: "/blog/page",
        },
        {
          name: "中级会计",
          url: "/blog/page",
        },
        {
          name: "注册会计师",
          url: "/blog/page",
        },
        {
          name: "税务师",
          url: "/blog/page",
        },
        {
          name: "会计实操",
          url: "/blog/page",
        },
        {
          name: "管理会计师",
          url: "/blog/page",
        },
        {
          name: "中级经济师",
          url: "/blog/page",
        },

      ],
    },
    {
      name: "去做题",
      url: "/blog/user",
    },
    {
      name: "直播课",
      url: "/blog/user",
    },
    {
      name: "选课中心",
      url: "/blog/user",
    },

    {
      name: "实训中心",
      url: "/blog/user",
      icon: "new",
    },
    {
      name: "社会报名",
      url: "/blog/user",
      icon: "hot",
    },
  ];

  list = list.map((item) => {
    item.id = createId();
    return item;
  });
  return {
    list,
  };
});
